/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-10-11
 * Time: 8:46
 */
public class TestTree {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree("ABD##E##C##");
        testBinaryTree.preOrder(root);
        System.out.println();
        testBinaryTree.inOrder(root);
        System.out.println(testBinaryTree.size(root));
        System.out.println(testBinaryTree.getKLevelNodeCount(root, 4));
        System.out.println(testBinaryTree.getHeight(root));
        System.out.println(testBinaryTree.find(root, 'Y'));
        testBinaryTree.levelOrder(root);
        System.out.println();
        System.out.println(testBinaryTree.isCompleteTree(root));

    }
}
